vipCard.useMonths='12';
vipCard.buckleNumber='365';

vue_vm.$watch("data.price",function(newVal,oldVal) {
	vipCard.pricePerDay = (newVal / 365.0).toFixed(2);
});

function onSubsidizationChange(vmObj) {
	vipCard.subsidization = '';
	vipCard.subsidizationValue = '';
	
	if(vmObj.data.subsidizationType=='1') {
		vipCard.subsidization = '饭卡补助';
		vipCard.subsidizationValue = vmObj.data.subsidizationMoney;
	}else if(vmObj.data.subsidizationType=='2') {
		vipCard.subsidization = '包餐补助';
		vipCard.subsidizationValue = vmObj.data.subsidizationDay;
	}else {
		vipCard.subsidization = '无补助';
		vipCard.subsidizationValue = '';
	}
}

vue_vm.$watch("data.subsidizationType",function(newVal,oldVal) {
	onSubsidizationChange(this);
});

vue_vm.$watch("data.subsidizationMoney",function(newVal,oldVal) {
	onSubsidizationChange(this);
});

vue_vm.$watch("data.subsidizationDay",function(newVal,oldVal) {
	onSubsidizationChange(this);
});

vue_vm.$watch("data.consumptionType",function(newVal,oldVal) {
	/*
	if(newVal=='1') {
		vipCard.consumptionWay = '半个月扣费';
		vipCard.buckleNumber='24';
	}else if(newVal=='2') {
		vipCard.consumptionWay = '1个月扣费';
		vipCard.buckleNumber='12';
	}
	*/
});